﻿


using Microsoft.AspNetCore.Mvc;
using NetCore.BLL;
using NetCore.ORG.BLL;
using NetCore.ORG.Model;

namespace NetCore.ORG.Web.Controllers
{
    public class ApiController :AreaController
    {
        #region Service注入
     
        public IDepartmentService mService { get; set; }
        public IJobFunctionService mJobService { get; set; }
        public IOrgChartService mOrgService { get; set; }

        public IUserService muService { get; set; }
        [HttpGet]
        public IActionResult UserView() {
            return View();
        }

        [HttpPost]
        public IActionResult GetUsers(LigerGrid ligerGrid)
        {
            return Json(AjaxResult.Success(mOrgService.GetUsers(ligerGrid)));
        }
        #endregion

    }
}
